package ioc.singleorprototype;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * Created on 2021-04-29
 */
@Data
@Component
@Scope("prototype")
public class PrototypeDemo {


    public void speak(){
        System.out.println("PrototypeDemo");
    }
}
